package com.example.webcomen.Service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.webcomen.Mapper.*;
import com.example.webcomen.Model.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestService {
    @Autowired
    private UserMapper userMapper;
    @Autowired
    private GroupMapper groupMapper;
    @Autowired
    private AddMessageMapper addMessageMapper;
    @Autowired
    private FriendGroupDetailMapper friendGroupDetailMapper;
    @Autowired
    private FriendGroupMapper friendGroupMapper;
    @Autowired
    private GroupMemberMapper groupMemberMapper;
    @Autowired
    private MessageMapper messageMapper;
    public List<User> testUser(){
        return userMapper.selectList(null);
    }
    public List<Group> testGroup(){
        return groupMapper.selectList(null);
    }
    public List<AddMessage> testAddMessage(){
        return addMessageMapper.selectList(null);
    }
    public List<FriendGroup> testFriendGroup(){
        return friendGroupMapper.selectList(null);
    }
    public List<FriendGroupDetail> testFriendGroupDetail(){
        return friendGroupDetailMapper.selectList(null);
    }
    public List<GroupMember> testGroupMenber(){
        return groupMemberMapper.selectList(null);
    }
    public List<Message> testMessage(){
        return messageMapper.selectList(null);
    }
}
